package com.ssy.lingxi.pay.api.fallback;

import com.ssy.lingxi.common.exception.BusinessException;
import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.pay.api.dto.request.aliPay.*;
import com.ssy.lingxi.pay.api.feign.IAliPayFeign;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * @author lqa
 * @version 2.0.0
 * @date 2021/11/3
 */
@Component
@Qualifier("aliPayHystrix")
public class AliPayHystrix implements IAliPayFeign {
    @Override
    public Wrapper<String> orderPay(AliPayComputerRequest aliPayComputerRequest) {
        throw new BusinessException(ResponseCode.SERVICE_PAY_ERROR);
    }

    @Override
    public Wrapper<Object> orderQuery(AliPayOrderQueryRequest aliPayOrderQueryRequest) {
        throw new BusinessException(ResponseCode.SERVICE_PAY_ERROR);
    }

    @Override
    public Wrapper<Object> closeOrder(AliPayCloseOrderRequest aliPayCloseOrderRequest) {
        throw new BusinessException(ResponseCode.SERVICE_PAY_ERROR);
    }

    @Override
    public Wrapper<Object> refund(AliPayRefundRequest aliPayRefundRequest) {
        throw new BusinessException(ResponseCode.SERVICE_PAY_ERROR);
    }

    @Override
    public Wrapper<Object> refundQuery(AliPayRefundQueryRequest aliPayRefundQueryRequest) {
        throw new BusinessException(ResponseCode.SERVICE_PAY_ERROR);
    }
}
